class Money implements Cloneable{
    public double money=9.9;

    @Override
    protected Object clone()
            throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Person implements Cloneable  {
    public int age;
    public String name;
    public Money m1=new Money();

    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
    protected Object clone()
            throws CloneNotSupportedException {
        Person tmp=(Person) super.clone();
        tmp.m1=(Money) this.m1.clone();
        return tmp;
    }
}
